package com.tust.app.service;

import com.github.pagehelper.PageInfo;
import com.tust.app.domain.Answer;
import com.tust.app.domain.Topic;

import java.util.List;

public interface TopicService {
    void updateTopicState(int id);
    void deleteTopic(int id);
    PageInfo getAllTopics(int pageNum);

    Topic selectTopicAnswerById(int id);

    List<Answer> getAnswerList(int topicId);

    void addTopic(String edituser, String title, String detail);

    PageInfo getAllTopicsByUser(String edituser,int pageNum);

    void updateTopic(int id, String title, String detail);

    Topic getTopicById(int id);
}
